package structures;

import java.sql.Date;
import java.sql.Time;


/**
 * @author darin
 * This is essentially just a storage structure element for tasks
 */
public class Task {

	/**
	 * A unique number representing this task.
	 */
	private int taskId;
	/**
	 * A unique number indicating the project this task belongs to.
	 */
	private int projectId;
	/**
	 * A number indicating the type of work performed.
	 */
	private int subtype;
	/**
	 *  a number indicating the career field of the work.
	 */
	private int type;
	/**
	 * A description of the work performed.
	 */
	private String taskDesc;
	/**
	 * The date the task was performed on.
	 */
	private Date taskDate;
	/**
	 * Start time of the task.
	 */
	private Time timeIn;
	/**
	 * end time of the task.
	 */
	private Time timeOut;
	/**
	 * @return the taskId
	 */
	public final int getTaskId() {
		return taskId;
	}
	/**
	 * @param id the taskId to set
	 */
	public final void setTaskId(final int id) {
		taskId = id;
	}
	/**
	 * @return the projectId
	 */
	public final int getProjectId() {
		return projectId;
	}
	/**
	 * @param id the projectId to set
	 */
	public final void setProjectId(final int id) {
		projectId = id;
	}
	/**
	 * @return the subtypeId
	 */
	public final int getSubtype() {
		return subtype;
	}
	/**
	 * @param id the subtypeId to set
	 */
	public final void setSubtype(final int id) {
		subtype = id;
	}
	/**
	 * @return the typeId
	 */
	public final int getType() {
		return type;
	}
	/**
	 * @param id the typeId to set
	 */
	public final void setType(final int id) {
		type = id;
	}
	/**
	 * @return the taskDesc
	 */
	public final String getTaskDesc() {
		return taskDesc;
	}
	/**
	 * @param desc the taskDesc to set
	 */
	public final void setTaskDesc(final String desc) {
		taskDesc = desc;
	}
	/**
	 * @return the taskDate
	 */
	public final Date getTaskDate() {
		return taskDate;
	}
	/**
	 * @param date  the taskDate to set
	 */
	public final void setTaskDate(final Date date) {
		taskDate = date;
	}
	/**
	 * @return the timeIn
	 */
	public final Time getTimeIn() {
		return timeIn;
	}
	/**
	 * @param time the timeIn to set
	 */
	public final void setTimeIn(final Time time) {
		timeIn = time;
	}
	/**
	 * @return the timeOut
	 */
	public final Time getTimeOut() {
		return timeOut;
	}
	/**
	 * @param time the timeOut to set
	 */
	public final void setTimeOut(final Time time) {
		timeOut = time;
	}
	public final String toString()
	{
		String s = "" + taskId + " " + projectId + " " + taskDate + 
				" " + timeIn + " " + timeOut + " " + type + " " +
				subtype + " " + taskDesc;
		return s;
	}
}
